<template>
  <div>
<!--    <index-school v-if="indexStyle==1"></index-school>-->
<!--    <index-department v-if="indexStyle==2"></index-department>-->

<!--    <index-chart v-if="indexStyle==4"></index-chart>-->
<!--    <index-bdc v-if="indexStyle==5"></index-bdc>-->
<!--    <index-task v-if="indexStyle==6"></index-task>-->

    <a-row :gutter="24">
<!--      <a-col :xl="12" :lg="12" :md="12" :sm="24">-->
<!--        <g-year-picker-->
<!--          placeholder="请选择时间"-->
<!--          :is-init="false"-->
<!--          v-model="this.queryDate"-->
<!--        ></g-year-picker>-->
<!--      </a-col>-->
<!--      <a-col :xl="12" :lg="12" :md="12" :sm="24">-->
<!--        <div style="width: 100%;text-align: right;margin-top: 20px">-->
<!--          请选择首页样式：-->
<!--          <a-radio-group v-model="indexStyle">-->
<!--            &lt;!&ndash;        <a-radio :value="1">全校图表</a-radio>&ndash;&gt;-->
<!--            &lt;!&ndash;        <a-radio :value="2">分院图表</a-radio>&ndash;&gt;-->
<!--            <a-radio :value="3">个人图表</a-radio>-->


<!--          </a-radio-group>-->
<!--        </div>-->
<!--      </a-col>-->
    </a-row>
    <a-row>
<!--      <index-teacher v-if="indexStyle==3"></index-teacher>-->
      <index-teacher v-if="indexStyle==3" :query-date="this.queryDate" :user-name="this.username"></index-teacher>
    </a-row>

  </div>
</template>

<script>
  import IndexSchool from '@views/dashboard/gfxy/IndexSchool'
  import IndexDepartment from '@views/dashboard/gfxy/IndexDepartment'
  import IndexTeacher from '@views/dashboard/gfxy/index/IndexTeacher'
  import IndexChart from './IndexChart'
  import IndexTask from "./IndexTask"
  import IndexBdc from './IndexBdc'
  import GYearPicker from '@views/gfxy/common/GYearPicker'
  import Vue from 'vue'
  import { CURRENT_DATE, USER_INFO } from '@/store/mutation-types'


  export default {
    name: "Analysis",
    components: {
      IndexSchool,
      IndexDepartment,
      IndexTeacher,
      IndexChart,
      IndexTask,
      IndexBdc,
      GYearPicker
    },
    data() {
      return {
        indexStyle:3,
        queryDate:'',
        username:''
      }
    },
    created() {
      this.queryDate = Vue.ls.get(CURRENT_DATE);
      let userInfo = Vue.ls.get(USER_INFO);
      this.username = userInfo.username;
    },
    methods: {

    }
  }
</script>